package com.shujia.wyh.day22.homework;

public class Book {
    private String id;
    private String name;
    private int price;
    private String Publisher;

    public Book() {
    }

    public Book(String id, String name, int price, String publisher) {
        this.id = id;
        this.name = name;
        this.price = price;
        Publisher = publisher;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getPublisher() {
        return Publisher;
    }

    public void setPublisher(String publisher) {
        Publisher = publisher;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", Publisher='" + Publisher + '\'' +
                '}';
    }
}
